package com.yzyz.bean.region;

import java.util.ArrayList;
import java.util.List;

import com.yzyz.bean.BaseBean;
import com.yzyz.bean.scenic.ScenicBean;

/**
 * 景区的分组
 * @author David Sun
 * @Date   2010-3-26
 *
 */
public class RegionBean extends BaseBean {
	@Override
	public boolean equals(Object obj) {
		if(obj == null){
			return false;
		}
		if(obj instanceof RegionBean){
			RegionBean region = (RegionBean)obj;
			if(this.id!= region.getId()){
				return false;
			} else {
				return true;
			}
		}
		return false;
	}

	private static final long serialVersionUID 	= -2053640148594407670L;
	
	private List<ScenicBean> scenics 	= new ArrayList<ScenicBean>(0);
	
	public List<ScenicBean> getScenics() {
		return scenics;
	}

	public void setScenics(List<ScenicBean> scenics) {
		this.scenics = scenics;
	}
	
	private String description;

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}
